Skip to content

add benchmarking scripts for parquet loader - #192

Merged
sam-herman merged 3 commits into
opensearch-project:mainfrom
akash-shankaran:addJakeScripts
Oct 31, 2025
Merged

add benchmarking scripts for parquet loader#192
sam-herman merged 3 commits into
opensearch-project:mainfrom
akash-shankaran:addJakeScripts

Conversation

@akash-shankaran

@akash-shankaran akash-shankaran commented Oct 27, 2025

Copy link
Copy Markdown
Collaborator

Description

This change adds the scripts used to ingest vector data as parquet files to opensearch, when using JVector engine.

Testing

akashshankaran@parquet-loader>>python3 osbench.py --path 0000.parquet --procs 1

Starting 1 processes over 1 files; batch=8000 bulk_chunk=1000 max_chunk_bytes=10485760
[worker] Missing required column 'embeddings' in batch — available columns: []
[worker] Missing required column 'embeddings' in batch — available columns: [] | 0/1 [00:00<?, ?it/s]
Workers: 100%|███████████████████████████| 1/1 [00:00<00:00, 6.89it/s]
Indexing finished.██████████████████████████| 1/1 [00:00<00:00, 6.90it/s]

Files processed: 1
Approx rows (metadata): 15857
Processes: 1
Successfully indexed: 0
Failed: 0
• retryable (suppressed):0
• critical (shown): 0
Total time: 0.15s

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Akash Shankaran <akash.shankaran@ibm.com>
Signed-off-by: Akash Shankaran <akash.shankaran@ibm.com>
@sam-herman

Copy link
Copy Markdown
Collaborator

@akash-shankaran thank you for the contribution, can you add a testing section in the description with sample of input/output?

Signed-off-by: akash shankaran <akash.shankaran1@gmail.com>
@akash-shankaran

Copy link
Copy Markdown
Collaborator Author

@akash-shankaran thank you for the contribution, can you add a testing section in the description with sample of input/output?

@sam-herman done. I also fixed a bunch of bugs in the script when testing with a new parquet file. (such as parsing columns that didn't exist in original file from Jake :) ).

@sam-herman
sam-herman merged commit 4b6fe50 into opensearch-project:main Oct 31, 2025
6 checks passed
opensearch-trigger-bot Bot pushed a commit that referenced this pull request Oct 31, 2025
* add scripts for parquet loader

---------

Signed-off-by: Akash Shankaran <akash.shankaran@ibm.com>
Signed-off-by: akash shankaran <akash.shankaran1@gmail.com>
(cherry picked from commit 4b6fe50)
sam-herman pushed a commit that referenced this pull request Oct 31, 2025
* add scripts for parquet loader

---------



(cherry picked from commit 4b6fe50)

Signed-off-by: Akash Shankaran <akash.shankaran@ibm.com>
Signed-off-by: akash shankaran <akash.shankaran1@gmail.com>
Co-authored-by: Akash Shankaran <akash.shankaran1@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants